package com.ssh.cp.idao;

import java.util.List;

import com.ssh.cp.entity.FileEntity;



public interface IFileDao {
	public String saveFile(FileEntity inserFile);
	public List<?> listAllFile(int start,int length);
	
	public List<?> listAllUserFile(int userid);
	
	public List<?> listFileByUserId(int userid,int start,int length);
	
	public List<?> listFileByFileName(String filename,int start,int length);
	
	public List<?> listFileByFileName(int userid,String filename,int start,int length);
	
	public List<?> listFileByLibrary(int userid,int libraryid, int start,int length);
	
	public List<?> listFileByUserAndClass(int userid,int classid,int start,int length);
	
	public List<?> listShareFile(int start,int length);
	
	public List<?> listShareFile(String search,int start,int length);
	
	public String updateFile(FileEntity updateFile);

	public String checkShareAndDownload(int fileid);
	
	public String getFilePathById(int fileid);
	
	public void delFile(int fileid);
	
	public void delFile(int userid,int fileid);
	
	public int getFileNum();
	
	public int getShareFileNum();
	
	public int getFileNum(int userid);
}
